<div class="wrapper-md" ng-controller="PersonalCtrl">
	<div class="row">
		<div class="col-sm-12 m-b-sm">
			<div class="caption">
				个人中心
			</div>
		</div>
	</div>
	<div class="col-sm-12 m-b-sm">
		<div class="row">
			<div class="b-b m-b-sm"></div>
			<div ui-view="" class="profile-content fade-in-up ng-scope">
				<div class="row ">
					<div class="col-md-8">
						<div class="portlet light">
							<uib-tabset class="nav-tabs-alt tabbable-line">
								<uib-tab heading="{{'user.infoEdit' | translate}}">
									<div class="m-t-xs">
										<form name="userForm" class=" form-validation">
											<input type="hidden" name="id" value="1014623300325796012">
											<div class="form-group">
												<label class="control-label"><span class="text-danger">*</span><span translate="user.yonghuming"></span></label>
												<input type="text" class="form-control" name="name" ng-model="vm.user.name" uib-tooltip="{{'common.op.remind2' | translate}}"
												 maxlength="32" required>
											</div>
											<div class="form-group">
												<label class="control-label"><span translate="user.dianhua"></span></label>
												<input type="text" class="form-control" name="phone" ng-model="vm.user.telephone" maxlength="32" ng-pattern="app.reg.phone"
												 uib-tooltip="{{'user.dianhuajiaoyan' | translate}}">
											</div>
											<div class="form-group">
												<label class="control-label"><span class="text-danger">*</span><span translate="user.youxiang"></span></label>
												<input type="text" class="form-control" name="email" ng-model="vm.user.email" maxlength="128" required ng-pattern="app.reg.email"
												 uib-tooltip="{{'user.youxiangjiaoyan' | translate}}">
											</div>
											<div class="form-group">
												<label class="control-label"><span translate="user.dizhi"></span></label>
												<input type="text" class="form-control" ng-model="vm.user.address" maxlength="256" uib-tooltip="{{'common.op.remind6' | translate}}">
											</div>
											<div class="margiv-top-10">
												<button type="submit" class="btn btn-primary" ng-click="vm.saveUser()" ng-disabled="userForm.$invalid" translate="common.confirm"></button>
											</div>
										</form>
									</div>
								</uib-tab>
								<uib-tab heading="{{'user.mimaxiugai' | translate}}">
									<div class="m-t-xs">
										<form name="passwordForm" class=" form-validation">
											<div class="form-group">
												<label class="control-label"><span class="text-danger">*</span><span translate="user.yuanmima"></span></label>
												<input type="password" class="form-control" name="oldPassword" ng-model="vm.user.oldPassword" required uib-tooltip="{{app.pwdRule.passwordTip}}">
											</div>
											<div class="form-group">
												<label class="control-label"><span class="text-danger">*</span><span translate="user.xinmima"></span></label>
												<input type="password" class="form-control" name="password" id="newPwd" ng-model="vm.user.password" required ng-minlength="app.pwdRule.minLength"
												 ng-maxlength="app.pwdRule.maxLength" uib-tooltip="{{app.pwdRule.passwordTip}}">
											</div>
											<div class="form-group">
												<label class="control-label"><span class="text-danger">*</span><span translate="user.querenmima"></span></label>
												<input type="password" class="form-control" name="pwdName" id="newPwd1" ng-model="vm.user.pwdName" required ui-validate=" '$value==vm.user.password' "
												 ui-validate-watch=" 'vm.user.password' " uib-tooltip="{{'user.querenmimatishi' | translate}}" />
											</div>
											<div class="margin-top-10">
												<button type="submit" class="btn btn-primary" ng-click="vm.savePassword()" ng-disabled="passwordForm.$invalid" translate="common.confirm">
	                                            </button>
											</div>
										</form>
									</div>
								</uib-tab>
							</uib-tabset>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>